Data Analysis by R

Plotly

Plotly is used by R and Python. We can analyze interactively by graphs. And use Graph for 3-Dimension .

But Stratified Graph is not rich.
Interactive graph

Common Code for R

library(plotly)
setwd("C:/Rtest")
Data <- read.csv("Data.csv", header=T)

Scatter Plot

1-Dimension Scatter Plot (jitter)

1-Dimension Scatter Plot (jitter)

plot_ly(Data, x=~C1, y=~Y1, type = "box", boxpoints="all",jitter = 0.5)
1-Dimension Scatter Plot

2-Dimension Scatter Plot

2-Dimension Scatter Plot

plot_ly(Data, x=~X1, y=~Y1, type = 'scatter', color=~C1, symbol = ~C1)
2-Dimension Scatter Plot

Without colors and shapes
plot_ly(Data, x=~X1, y=~Y1, type = 'scatter')

3-Dimension Scatter Plot

plot_ly(Data, x=~X1, y=~Y1, z=~Z1, type = 'scatter3d', color=~C1, symbol = ~C1, marker = list(size = 3))
3-Dimension Scatter Plot

Line Graph

Easy Line Graph

plot_ly(Data, x=~X1, y=~Y1, type = 'scatter', mode = 'lines+markers')
Line Graph

Stratified Line Graph

library(tidyr)
Data_long <- tidyr::gather(Data, key="Yno", value = Ys, -X1)
plot_ly(Data_long, x=~X1, y=~Ys, type = 'scatter', color=~Yno, symbol = ~Yno, mode = 'lines+markers')



Reference

Plotly for R

https://plot.ly/r/